#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);

    QToolBar* bar1 = new QToolBar();
    this->addToolBar(Qt::LeftToolBarArea,bar1);
    QToolBar* bar2 = new QToolBar();
    this->addToolBar(bar2);

    bar1->setAllowedAreas(Qt::LeftToolBarArea);
    bar1->setFloatable(false);
    bar2->setMovable(false);
    QAction* action1_1 = new QAction("action1_1");
    QAction* action1_2 = new QAction("action1_2");
    QAction* action1_3 = new QAction("action1_3");
    QAction* action1_4 = new QAction("action1_4");
    QAction* action1_5 = new QAction("action1_5");

    bar1->addAction(action1_1);
    bar1->addAction(action1_2);
    bar1->addAction(action1_3);
    bar1->addAction(action1_4);
    bar1->addAction(action1_5);

    QAction* action2_1 = new QAction("action2_1");
    QAction* action2_2 = new QAction("action2_2");
    QAction* action2_3 = new QAction("action2_3");
    QAction* action2_4 = new QAction("action2_4");
    QAction* action2_5 = new QAction("action2_5");

    bar2->addAction(action2_1);
    bar2->addAction(action2_2);
    bar2->addAction(action2_3);
    bar2->addAction(action2_4);
    bar2->addAction(action2_5);


}


MainWindow::~MainWindow()
{
    delete ui;
}

